package sa_prakt1.bl.entity.impl;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import sa_prakt1.bl.entity.interfaces.Entry;
import sa_prakt1.bl.entity.interfaces.Forum;
import sa_prakt1.bl.entity.interfaces.Member;

/**
 *
 * @author Andreas
 */
public abstract class AbstractEntry implements Entry {

    private String OID;
    private String Title;
    private String Text;
    private Member writtenBy;
    private Forum belongsTo;

    public AbstractEntry() {
    }

    public AbstractEntry(String OID, String Title, String Text, Member writtenBy, Forum belongsTo) {
        this.OID = OID;
        this.Title = Title;
        this.Text = Text;
        this.writtenBy = writtenBy;
        this.belongsTo = belongsTo;
    }

    /**
     * @return the OID
     */
    @Override
    public String getOID() {
        return OID;
    }

    /**
     * @param OID the OID to set
     */
    @Override
    public void setOID(String OID) {
        this.OID = OID;
    }

    /**
     * @return the Title
     */
    @Override
    public String getTitle() {
        return Title;
    }

    /**
     * @param Title the Title to set
     */
    @Override
    public void setTitle(String Title) {
        this.Title = Title;
    }

    /**
     * @return the Text
     */
    @Override
    public String getText() {
        return Text;
    }

    /**
     * @param Text the Text to set
     */
    @Override
    public void setText(String Text) {
        this.Text = Text;
    }

    /**
     * @return the writtenBy
     */
    @Override
    public Member getWrittenBy() {
        return writtenBy;
    }

    /**
     * @param writtenBy the writtenBy to set
     */
    @Override
    public void setWrittenBy(Member writtenBy) {
        this.writtenBy = writtenBy;
    }

    /**
     * @return the belongsTo
     */
    @Override
    public Forum getBelongsTo() {
        return belongsTo;
    }

    /**
     * @param belongsTo the belongsTo to set
     */
    @Override
    public void setBelongsTo(Forum belongsTo) {
        this.belongsTo = belongsTo;
    }
}
